<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>数据字典-大正</title>
<style type="text/css">
<!--
* {
	padding: 0;
	margin: 0
}

img {
	border: 0;
	display: block;
}

BODY {
	PADDING-RIGHT: 0px;
	PADDING-LEFT: 0px;
	FONT-SIZE: 12px;
	PADDING-BOTTOM: 0px;
	MARGIN: 0px auto;
	COLOR: black;
	LINE-HEIGHT: 150%;
	PADDING-TOP: 10px;
	BACKGROUND-COLOR: white;
	TEXT-ALIGN: center
}

.dis_zzjs_net {
	DISPLAY: block
}

.undis_zzjs_net {
	DISPLAY: none
}

#cntr_zzjs {
	WIDTH: 650px
}

#zzjs {
	CLEAR: both;
	MARGIN-BOTTOM: 16px
}

#zzjs P {
	FLOAT: left;
	LINE-HEIGHT: 21px
}

#zzjs P.top_zzjs {
	FONT-WEIGHT: bold;
	WIDTH: 80px
}

#zzjs P.topzzjs {
	BACKGROUND: #dcdcdc;
	BORDER-LEFT: #f2f2f2 1px solid;
	WIDTH: 80px;
	CURSOR: pointer
}

#zzjs P.top_zzjs_1 {
	BACKGROUND: #c2130e;
	BORDER-LEFT: #f2f2f2 1px solid;
	WIDTH: 80px;
	COLOR: #fff
}

#zzjs #zzjs_tit {
	BORDER-BOTTOM: #c2130e 3px solid;
	HEIGHT: 21px
}

#zzjs P.top_zzjs {
	FONT-WEIGHT: bold;
	WIDTH: 80px
}

#zzjs P.topzzjs {
	BACKGROUND: #dcdcdc;
	BORDER-LEFT: #f2f2f2 1px solid;
	WIDTH: 60px;
	CURSOR: pointer
}

#zzjs P.top_zzjs_1 {
	BACKGROUND: #c2130e;
	BORDER-LEFT: #f2f2f2 1px solid;
	WIDTH: 60px;
	COLOR: #fff
}

#zzjs #zzjs_tit {
	BORDER-BOTTOM: #c2130e 3px solid;
	HEIGHT: 21px
}

#zzjs #zzjs_cnt {
	PADDING-LEFT: 32px;
	BACKGROUND: url(/img/li_20110118zzjs_net.gif) no-repeat 12px 13px;
	LINE-HEIGHT: 26px;
	PADDING-TOP: 7px;
	HEIGHT: 260px;
	TEXT-ALIGN: left
}

#zzjs #zzjs_cnt A {
	COLOR: #666;
	TEXT-DECORATION: none
}

#zzjs #zzjs_cnt A:hover {
	COLOR: #c2130e;
	TEXT-DECORATION: underline
}
-->
</style>
</head>

<body>	
	<DIV id="cntr_zzjs">
	<!--<span style="font-weight: bold; color:#F93; aligh: center; font-size: 20px; width: 650px">数据字典</span>
	<br><br>-->
		<DIV id="zzjs">
			<DIV id="zzjs_tit">
				<P class="top_zzjs">数据字典</P>
				<P class="topzzjs">金属成色</P>
				<P class="topzzjs">宝石类别</P>
				<P class="topzzjs">首饰类别</P>
				<P class="topzzjs">形 状</P>
				<P class="topzzjs">颜 色</P>
				<P class="topzzjs">净 度</P>
				<P class="topzzjs">车 工</P>
				<P class="topzzjs">镶 法</P>
				<P class="topzzjs">规 格</P>
			</DIV>

			<DIV id="zzjs_cnt">
				<SPAN title="不要删除这行"></SPAN>
				<!-- 第一个选项卡  -->
				<SPAN>
					<jsp:include page="metalper.jsp" flush="true"/>
					<!--<table width="100%" border="1">
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="40%" scope="col">(金属成色）名称</th>
							<th width="29%" scope="col">与蜡比重</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.metalperlist" status="listStat">
							<tr>
								<td><s:property value="#listStat.count" /></td>
								<td><s:property value="name" /></td>
								<td><s:property value="waxper" /></td>
								<td><a href="modddaction?optype=metalper&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=metalper&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table> <BR>
				<div align="right">
						<A href="modddaction?optype=metalper&oid=new">新增</A>
					</div> --> </SPAN>
				<!-- 第二个选项卡  -->
				<SPAN>
				<jsp:include page="jewtype.jsp" flush="true"/>
				<!--  <table width="100%" border="1">
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="69%" scope="col">（宝石类别）名称</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.jewtypelist" status="listStat">
							<tr>
								<td ><s:property value="#listStat.count" /></td>
								<td ><s:property value="name" /></td>
								<td><a href="modddaction?optype=jewtype&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=jewtype&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table><BR>
				<div align="right">
						<A href="modddaction?optype=jewtype&oid=new">新增</A>
					</div> -->
					</SPAN>
				<!-- 第三个选项卡  -->
				<SPAN>
					<table width="100%" border="1">
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="38%" scope="col">（首饰类别）名称</th>
							<th width="31%" scope="col">单位</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.sstypelist" status="listStat">
							<tr>
								<td ><s:property value="#listStat.count" /></td>
								<td ><s:property value="name" /></td>
								<td ><s:property value="unit" /></td>
								<td><a href="modddaction?optype=sstype&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=sstype&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table><BR>
					<div align="right">
						<A href="modddaction?optype=sstype&oid=new" >新增</A>
					</div> </SPAN>
				<!-- 第四个选项卡  -->
				<SPAN><table width="100%" border="1">
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="69%" scope="col">（形状）名称</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.shapelist" status="listStat">
							<tr>
								<td ><s:property value="#listStat.count" /></td>
								<td ><s:property value="name" /></td>
								<td><a href="modddaction?optype=shape&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=shape&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table> <BR>
				<div align="right">
						<A href="modddaction?optype=shape&oid=new">新增</A>
					</div> </SPAN>
				<!-- 第五个选项卡  -->

				<SPAN><table width="100%" border="1">
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="69%" scope="col">（颜色）名称</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.colorlist" status="listStat">
							<tr>
								<td ><s:property value="#listStat.count" /></td>
								<td ><s:property value="name" /></td>
								<td><a href="modddaction?optype=color&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=color&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table> <BR>
				<div align="right">
						<A href="modddaction?optype=color&oid=new">新增</A>
					</div> </SPAN>
				<!-- 第六个选项卡  -->
				<SPAN><table width="100%" border="1">
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="69%" scope="col">（净度）名称</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.clearlist" status="listStat">
							<tr>
								<td ><s:property value="#listStat.count" /></td>
								<td ><s:property value="name" /></td>
								<td><a href="modddaction?optype=clear&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=clear&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table> <BR>
				<div align="right">
						<A href="modddaction?optype=clear&oid=new">新增</A>
					</div> </SPAN>
				<!-- 第七个选项卡  -->
				<SPAN><table width="100%" border="1">
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="69%" scope="col">（车工）名称</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.lathelist" status="listStat">
							<tr>
								<td ><s:property value="#listStat.count" /></td>
								<td ><s:property value="name" /></td>
								<td><a href="modddaction?optype=lathe&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=lathe&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table> <BR>
				<div align="right">
						<A href="modddaction?optype=lathe&oid=new">新增</A>
					</div> </SPAN>
				<!-- 第八个选项卡  -->
				<SPAN><table width="100%" border="1">
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="25%" scope="col">名称</th>
							<th width="20%" scope="col">形状</th>
							<th width="16%" scope="col">规格</th>
							<th width="8%" scope="col">主石</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.embedlist" status="listStat">
							<tr>
								<td ><s:property value="#listStat.count" /></td>
								<td ><s:property value="name" /></td>
								<td ><s:property value="shape" /></td>
								<td ><s:property value="spec" /></td>
								<td >
								<s:if test='ismstone == "N"'>否</s:if>
								<s:else>是</s:else>
								</td>
								<td><a href="modddaction?optype=embed&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=embed&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table> <BR>
				<div align="right">
						<A href="modddaction?optype=embed&oid=new">新增</A>
					</div> </SPAN>

				<!-- 第九个选项卡  -->
				<SPAN><table width="100%" border="1" >
						<tr>
							<th width="11%" scope="col">序号</th>
							<th width="69%" scope="col">（规格）名称</th>
							<th width="20%" scope="col">操作</th>
						</tr>
						<s:iterator value="#request.speclist" status="listStat">
							<tr>
								<td ><s:property value="#listStat.count" /></td>
								<td ><s:property value="name" /></td>
								<td><a href="modddaction?optype=spec&oid=${ id }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="datadictaction?action=deldd&optype=spec&oid=${ id }">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table> <BR>
				<div align="right">
						<A href="modddaction?optype=spec&oid=new">新增</A>
					</div> </SPAN>

			</DIV>
			<SCRIPT>
				var Tags = document.getElementById('zzjs_tit')
						.getElementsByTagName('p');
				var TagsCnt = document.getElementById('zzjs_cnt')
						.getElementsByTagName('span');
				var len = Tags.length;
				var flag = ${pagesel}; //修改默认值
				if(flag == 0) {
					flag = 1;
				}
				for (i = 1; i < len; i++) {
					Tags[i].value = i;
					Tags[i].onmouseover = function() {
						change_zzjs(this.value)
					};
					TagsCnt[i].className = 'undis_zzjs_net';
				}
				Tags[flag].className = 'top_zzjs_1';
				TagsCnt[flag].className = 'dis_zzjs_net';
				function change_zzjs(v) {
					Tags[flag].className = 'topzzjs';
					TagsCnt[flag].className = 'undis_zzjs_net';
					flag = v;
					Tags[v].className = 'top_zzjs_1';
					TagsCnt[v].className = 'dis_zzjs_net';
				}
			</SCRIPT>
		</DIV>
	</DIV>
</body>
</html>
